﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="personalize.aspx.cs" Inherits="Cinemax.Personalize" %>

<%@ Register TagPrefix="uc" TagName="update_loaive" Src="~/UserControls/wuc_update_fare.ascx" %>
<%@ Register TagPrefix="uc" TagName="update_khuyenmai" Src="~/UserControls/wuc_update_promotion.ascx" %>
<%@ Register TagPrefix="uc" TagName="insert_suatchieu" Src="~/UserControls/wuc_add_schedule.ascx" %>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    <title>Rạp Cinemax - Quản lý</title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="menu_conent_place_holder" runat="server">
    <li><a href="home.aspx" id="A1">Trang chủ</a></li>
    <li><a href="list_film.aspx" id="A2">Phim</a></li>
    <li><a href="film_schedule.aspx" id="A3">Lịch chiếu/Đặt vé</a></li>
    <li><a href="ticket_promotion.aspx" id="A4">Giá vé &#38; Khuyến mãi</a></li>
    <li><a href="personalize.aspx" id="A5" class="active">Quản lý</a></li>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" runat="server">
    <div id="block2">
        <h2 style="text-align: center; color: aqua;">
            Các vé đã đặt</h2>
        <table style="width: 100%;">
            <tr>
                <td>
                    Mã vé
                </td>
                <td>
                    Tên phim
                </td>
                <td>
                    Ngày chiếu
                </td>
                <td>
                    Giờ chiếu
                </td>
                <td>
                    Giá tiền
                </td>
                <td>
                    Hủy
                </td>
            </tr>
            <%
                for (int i = 0; i < dsVeDaDat.Count; i++)
                {
            %>
            <tr>
                <td>
                    <%=dsVeDaDat.ElementAt(i).MaVe %>
                </td>
                <td>
                    <%=dsPhim.ElementAt(i).TenPhim %>
                </td>
                <td>
                    <%=dsSuatChieu.ElementAt(i).ThoiGianBatDau.ToString("dd/MM/yyyy") %>
                </td>
                <td>
                    <%=dsSuatChieu.ElementAt(i).ThoiGianBatDau.ToString("hh:mm") %>
                </td>
                <td>
                    <%=dsVeDaDat.ElementAt(i).ThanhTien %> VNĐ
                </td>
                <td>
                    <input type="button" title="<%=dsVeDaDat.ElementAt(i).MaVe %>" value="Hủy" onclick="return drop(this)" />
                </td>
            </tr>
            <%
                }
            %>
        </table>
        <div class="admin">
            <uc:update_loaive ID="update_lv" runat="server" Visible="false" />
        </div>
        <div class="admin">
            <uc:update_khuyenmai ID="update_km" runat="server" Visible="false" />
        </div>

        <div class="admin">
            <uc:insert_suatchieu ID="insert_sc" runat="server" Visible="false" />
        </div>
    </div>
</asp:Content>
